package com.example.a086.httpdemo.http;

import android.util.Log;

import com.example.a086.httpdemo.http.base.EngineCallback;
import com.example.a086.httpdemo.http.base.HttpUtils;
import com.google.gson.Gson;


/**
 * Created by 086 on 2018/5/8.
 */

public abstract class  HttpCallBack<T> implements EngineCallback {
    @Override
    public void onSuccess(String json) {
        Log.e("asd","json="+json);
        T t = (T) new Gson().fromJson(json, HttpUtils.analysisClazzInfo(this));
        onSuccess(t);
    }
    public abstract void onSuccess(T t);
}
